<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="moduleList" />
<script type="text/javascript">
$(document).ready(function() {
	
});
</script>
</head>
<body>
    	<form:form id="statementSelfrunError" modelAttribute="statementSelfrunError"  method="post" action="${contextPath}/biz/statement/statementSelfrunError/list" class="form-inline" role="search">
    	
    		<div class="collapse row o-l-search-builder" id="demo">
   				<div class="form-group show col-sm-6">
   					<label for="isConfirmed" class="col-sm-4 control-label">是否确认：</label>			
				    <div class="col-sm-4">
				    	<ossp:select dictType="selfrunError" name="isConfirmed" id="isConfirmed" class_="form-control"></ossp:select>
				    </div>
				</div>
				
				<div class="form-group show col-sm-6">
					<br>
				</div>
				<div class="form-group show col-sm-6">
					<br>
				</div>
				<div class="form-group show col-sm-6">
   					<label for="createTime" class="col-sm-4 control-label">提出日期:</label>
				    <div class="col-sm-8">
					   <div class="input-group date form_date " data-date="" data-date-format="yyyy-mm-dd" >
					          <input class="form-control" name="createTime" size="10"  data-rule="required" type="text" value=""  onblur="checkDateInput(this)">
		                    <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
		                    <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
	                   
	                	</div>
                	</div>
				</div>
				<div class="form-group show col-sm-6">
   					<label for="saleDate" class="col-sm-4 control-label">销售日期:</label>
				    <div class="col-sm-8">
					   <div class="input-group date form_date " data-date="" data-date-format="yyyy-mm-dd" >
					          <input class="form-control" name="saleDate" size="10"  data-rule="required" type="text" value=""  onblur="checkDateInput(this)">
		                    <span class="input-group-addon"><span class="glyphicon glyphicon-remove"></span></span>
		                    <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
	                   
	                	</div>
                	</div>
				</div>
   			</div>
    		<div class="o-l-chevron-down"><a href="#" class="btn btn-default" data-toggle="collapse" data-target="#demo" id="chevronDownBtn" role="button"><span class="glyphicon glyphicon-chevron-down"></span></a></div>
	    	<div class="o-l-action pull-right">
				<div class="form-group">
			      <form:input path="supplierNo" id="supplierNo" class="form-control" placeholder="供应商名称"/>
			    </div>
				<button type="submit" class="btn btn-primary">查询</button>
			</div>
    	</form:form>
    	<div class="panel-heading">
				    <h3 class="panel-title">
				    	自营对账异常单列表
				    	<!-- <button class="btn btn-success btn-sm pull-right" role="button" onclick="doPrint()">打印</button> -->
				    </h3>
				   
				  </div>
		<tags:message content="${message}"/>
		<table class="table table-striped table-hover o-l-table" id="table1">
			<thead>
				<tr>
					<th>提出日期</th>
					<th>单据日期</th>
					<th>自营单据单号</th>
					<th>单据类型</th>
					<th>供应商名称</th>
					<th>异常单状态</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${list}" var="statementSelfrunError">
								<tr data-herf="${contextPath}/biz/statement/statementSelfrunError/${statementSelfrunError.id}/view" data-target="_self">
									<td><fmt:formatDate value="${statementSelfrunError.createTime}" pattern="yyyy-MM-dd"/></td>
									<td><fmt:formatDate value="${statementSelfrunError.saleDate}" pattern="yyyy-MM-dd"/></td>
									<td>${statementSelfrunError.billNo}</td>
									<td>${statementSelfrunError.billType}</td>
									<td>${statementSelfrunError.supplierName}</td>
									<td>
									<ossp:value dictType="IS_CONFIRMED" key="${statementSelfrunError.isConfirmed}"></ossp:value>
									</td>
									<%-- <td >
									<a href="${contextPath}/biz/statement/statementSaleNote/list?supplierNo=${statementSales.supplierNo}&saleDate=${statementSales.saleDate}">查看</a>
									<c:if test="${statementSales.isReconciliation==0}">
									<a href="${contextPath}/biz/statement/statementSales/reconciliation?id=${statementSales.id}" onclick="return Oosp_Confirm('是否已经核对完该条数据？', this.href)">确认账单</a>
									<a href="${contextPath}/biz/statement/statementSalesErro/add?id=${statementSales.id}">填写异常</a>
									</c:if>
									
									</td> --%>									
								</tr>
							</c:forEach>
			</tbody>
		</table>
		<div class="o-l-page">
			<div class="col-sm-6">
				<ul class="pagination">
					<li class="disabled"><a href="javascript:">&#171; 上一页</a></li>
					<li class="disabled"><a href="#">1</a></li>
					<li class="disabled"><a href="#">下一页 &#187;</a></li>
				</ul>
			</div>
			<div class="col-sm-6">
				<span class="pull-right">
					到第<input class="form-control input-sm input-goto" type="text">页
					<button class="btn btn-sm btn-primary" role="button">go</button>
				</span>
			</div>
		</div>
		<script type="text/javascript">
			$('.form_date').datetimepicker({
		        language:  'zh-CN',
		        weekStart: 1,
		        todayBtn:  1,
				autoclose: 1,
				todayHighlight: 1,
				startView: 2,
				minView: 2,
				forceParse: 0,
				format: 'yyyy-mm-dd'
		    });

</script>
<script type="text/javascript" src="${staticPath}/js/list.js"></script>
</body>
</html>